	Invest = function(){}
    
	Invest.init=function(subModule){
		CM.afterSubmit0='';
		CM.afterSubmit='';
    	//Arap.loadHome(subModule);
		Invest.loadBoard(subModule,function(){
			Invest.list();
    	 });
    }
	
	Invest.list =function(){
		var ids = $('div[id=invest_board] ul li[class=active]').attr('id');
		if(!ids){
			CM.alert("您目前还没有相关账户。<br/>请先到设置模块中添加后再回来！");
			return;
		}
		var strs= new Array(); 
		strs= ids.split(",");
		if(strs[1]=='10')Investment.list(strs[0]);
		if(strs[1]=='9')Fund.tranList(strs[0]);
		if(strs[1]=='8')Stock.tranList(strs[0]);
	}
	
	Invest.loadWd5 =function(){
		//$('#main').load(ctx+'/invest/wd5/web.html','',function(){}); 
		 $('#main').html('<iframe src="http://www.caakee.com/resc/other/wd5/web.html"  border=0 marginWidth=0 frameSpacing=0 marginHeight=0 frameBorder=0 noResize scrolling=no width="100%" height="750" />');
	}	
	
	Invest.loadBoard=function(subModule,callback){
	   var ids = $('div[id=invest_board] ul li[class=active]').attr('id');
       $('#board').load('../invest/board.do?subModule='+subModule+rnd(),'',function(){
    	   if(callback)callback();
    	   if(ids){
    		  Board.removeActive();
    		  Tab.activeLi($('div[id=invest_board] ul li[id='+ids+'] a'));
    	   }
       });
	 }
	
	///////////////////投资/////////////////////
	function Investment(){}
	Investment.pg = new Page('listtb');//列表页面
	Investment.accountId='';
    //查询 根据账户，明细
    Investment.search = function(params){
        url = '../invest/investment.do?method=listQry&accountId='+Investment.accountId;        
        if (Investment.pg.params) {url +=Investment.pg.params;}
        submitSearch('schForm',url+rnd(),'dataView',function(){
        	Investment.pg.init();
        }); 
                   
    } 
	
    //根据账户，明细列表   
    Investment.list = function(accountId){
        Investment.accountId=accountId;
        if(Investment.pg.params){Investment.pg.params=null;}
        $('#main').load('../invest/investment.do?method=list&accountId='+Investment.accountId+rnd(),'',function(){         
           $('#dataView').html(LOADING);
           Investment.pg.query =Investment.search;          
           Investment.search();
           Help.show(411);
        });
    }
    
    
//////////////////股票////////////////////////
 	
    